﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

project ("gallop")

IF(UNIX)
    ADD_DEFINITIONS( "-fPIC" )
    # set(Boost_NO_SYSTEM_PATHS ON)
    set(CTP_LIBS thostmduserapi_se thosttraderapi_se)
ENDIF()


set(CMAKE_CXX_STANDARD 17)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../bin)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../bin)
#SET(CMAKE_DEBUG_POSTFIX "_d")



SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH}
    "${PROJECT_SOURCE_DIR}/include"
)
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH}
    "${PROJECT_SOURCE_DIR}/../bin"
    "${PROJECT_SOURCE_DIR}/../lib"
)

# 包含子项目。
add_subdirectory ("gallop")

add_subdirectory("ltpp")
